import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import pagesIndex from '@/pages/index'
import projects from '@/pages/projects'
import details from '@/pages/details'
import abouts from '@/pages/abouts'
import contact from '@/pages/contact'
Vue.use(Router)

export default new Router({
    mode: 'hash',
    routes: [{
            path: '/',
            redirect: '/index'
        },
        {
            path: '/index',
            name: '首页',
            component: pagesIndex
        },
        {
            path: '/projects',
            name: 'projects',
            component: projects
        },
        {
            path: '/details',
            name: 'details',
            component: details
        },
        {
            path: '/abouts',
            name: '关于我们',
            component: abouts
        },
        {
            path: '/contact',
            name: '联系我们',
            component: contact
        }
    ]
})
